package com.xinxing.learning.security.service;

import com.xinxing.learning.security.entity.Menu;
import com.xinxing.learning.security.mapper.MenuMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuService {
    private final MenuMapper mapper;

    public MenuService(MenuMapper mapper) {
        this.mapper = mapper;
    }

    public List<Menu> getAllMenu() {
        return mapper.getAllMenu();
    }
}
